package com.xd.dubai.api.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;

import java.util.Date;

/*
 * 居民健康档案表
 */

@Data
@Table(name = "dt_api_healthy_record")
@EqualsAndHashCode(callSuper = false)
public class ApiHealthyRecordEntity extends BaseEntity {

    //编号
    @Length(min = 0, max = 50, message = "healthRecordNumber参数最大长度不50")
    String healthRecordNumber;

    //姓名
    @Length(min = 0, max = 20, message = "residentName参数最大长度不20")
    String residentName;

    //户籍地址
    @Length(min = 0, max = 50, message = "residenceAddress参数最大长度不50")
    String residenceAddress;

    //现住址
    @Length(min = 0, max = 50, message = "nowAddress参数最大长度不50")
    String nowAddress;

    //联系电话
    @Length(min = 0, max = 20, message = "contactPhone参数最大长度不20")
    String contactPhone;

    //乡镇（街道）名称
    @Length(min = 0, max = 50, message = "townshipStreetName参数最大长度不50")
    String townshipStreetName;

    //村（居）委会名称
    @Length(min = 0, max = 50, message = "villageCommitteeName参数最大长度不50")
    String villageCommitteeName;

    //建档单位
    @Length(min = 0, max = 50, message = "fileUnit参数最大长度不50")
    String fileUnit;

    //建档人
    @Length(min = 0, max = 20, message = "fileMaker参数最大长度不20")
    String fileMaker;

    //责任医生
    @Length(min = 0, max = 20, message = "responsibleDoctor参数最大长度不20")
    String responsibleDoctor;

    //建档时间
    Date fileTime;


}
